import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';


Vue.use(ElementUI);
// Vue.prototype.$axios=axios;

axios.defaults.baseURL="http://localhost:8082";

axios.interceptors.request.use(function (config) {
  const token = localStorage.getItem("auth");
  config.headers.auth =  token;
  return config;
});

Vue.prototype.$axios = axios;
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

